import Layout from '@/components/core/layout'

const router = {
  path: '/plan',
  name: 'plan',
  meta: {
    title: 'plan',
    icon: 'mdi-calendar',
  },
  component: Layout,
  redirect: '/plan/list',
  children: [
    {
      path: 'single',
      name: 'singleList',
      component: () => import('@/views/plan/single/index'),
      meta: {
        title: 'singleList'
      },
    },
    {
      path: 'single/add',
      name: 'singleAdd',
      component: () => import('@/views/plan/single/edit'),
      hidden: true,
      meta: {
        title: 'singleAdd',
        hidden: true
      },
    },
    {
      path: 'list',
      name: 'planList',
      component: () => import('@/views/plan/list'),
      meta: {
        title: 'planList'
      }
    },
    {
      path: 'sanpin',
      name: 'planSanpin',
      component: () => import('@/views/plan/sanpin'),
      meta: {
        title: 'planSanpin'
      }
    },
    {
      path: 'order',
      name: 'orderList',
      component: () => import('@/views/plan/order'),
      meta: {
        title: 'orderList'
      }
    },
    {
      path: 'fill-in',
      name: 'fillIn',
      component: () => import('@/views/plan/fill-in/index.vue'),
      hidden: true,
      meta: {
        title: 'fillIn',
        hidden: true
      }
    },
  ]
}

export default router
